package com.slz3.business.module.memberManagement.drawTicket.steward;

import com.slz3.business.frame.enums.AuditFlag;
import com.slz3.business.frame.enums.ValidFlag;
import com.slz3.business.frame.module.Services;
import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.util.VE;
import com.slz3.business.module.memberManagement.drawTicket.domain.DrawTicket;
import com.slz3.business.module.memberManagement.drawTicket.domain.DrawTicketCondition;
import org.springframework.web.reactive.function.server.ServerRequest;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

public class DrawTicketResSafeValid {

    static boolean add(ServerRequest req, DrawTicket drawTicket) {
        // T-O-D-O 唯一约束
        return RR.hasResErr(req);
    }

    /**
     * known: params uuids is not null
     */
    static final boolean delete(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }

    static boolean modify(ServerRequest req, DrawTicket drawTicket) {

        return RR.hasResErr(req);
    }

    static boolean info(ServerRequest req) {

        return RR.hasResErr(req);
    }

    /**
     * known: params uuids is not null
     */
    static final boolean auditSubmit(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }

    /**
     * known: params uuids is not null
     */
    static final boolean audit(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }

    /**
     * known: params uuids is not null
     */
    static final boolean auditReject(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }


    static final boolean usingEnable(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }


    static final boolean usingDisable(ServerRequest req, DrawTicketCondition drawTicketCondition) {

        return RR.hasResErr(req);
    }
}
